package org.jeecg.modules.dlxj.service.impl;

import org.apache.shiro.SecurityUtils;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.modules.dlxj.entity.DlxjPatrtolTask;
import org.jeecg.modules.dlxj.entity.DlxjReceiptPatrol;
import org.jeecg.modules.dlxj.mapper.DlxjReceiptPatrolMapper;
import org.jeecg.modules.dlxj.service.IDlxjReceiptPatrolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 巡检回执表
 * @Author: lzl
 * @Date:   2022-07-22
 * @Version: V1.0
 */
@Service
public class DlxjReceiptPatrolServiceImpl extends ServiceImpl<DlxjReceiptPatrolMapper, DlxjReceiptPatrol> implements IDlxjReceiptPatrolService {

    @Autowired
    private DlxjReceiptPatrolMapper dlxjReceiptPatrolMapper;

    @Override
    public void receiptEntry(String poleId,Integer level,Integer bugTypeId) {
        dlxjReceiptPatrolMapper.receiptEntry(poleId,level,bugTypeId);
    }

    @Override
    public List<DlxjPatrtolTask> queryReceiptTask() {
            return dlxjReceiptPatrolMapper.queryReceiptTask();

    }

    @Override
    public List<DlxjPatrtolTask> queryIssueTaskById(String userId) {
        return dlxjReceiptPatrolMapper.queryIssueTaskById(userId);
    }
}
